<?

class User {
  private $id;
  private $email;
  private $password;
  private $name;
  private $address;
  private $phone;
  
  function getID() {
    return $this->id;
  }
  
  function setID($id) {
    $this->id = $id;
  }
  
  function getEmail() {
    return $this->email;
  }
  
  function setEmail($e) {
    $this->email = $e;
  }
  
  function getPassword() {
    return $this->password;
  }
  
  function setPassword($pw) {
    $this->password = $pw;
  }
  
  function getName() {
    return $this->name;
  }
  
  function setName($n) {
    $this->name = $n;
  }
  
  function getAddress() {
    return $this->address;
  }
  
  function setAddress($a) {
    $this->address = $a;
  }
  
  function getPhone() {
    return $this->phone;
  }
  
  function setPhone($p) {
    $this->phone = $p;
  }
  
  function setAttributes($array) {
    $this->setID($array['id']);
    $this->setEmail($array['email']);
    $this->setPassword($array['password']);
    $this->setName($array['name']);
    $this->setAddress($array['address']);
    $this->setPhone($array['phone']);
  }
}

?>
